<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddSoapInfoToServerTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('server', function (Blueprint $table) {

            $table->string('auth_port',6)->nullable()->comment('登录服务端口')->after('server_port');

            $table->string('soap_host',50)->nullable()->comment('soap ip');
            $table->string('soap_port',6)->nullable()->comment('soap 端口');

            $table->string('soap_acc',15)->nullable()->comment('soap acc');
            $table->string('soap_pwd',25)->nullable()->comment('soap pwd');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('server', function (Blueprint $table) {
            //
        });
    }
}
